package cn.edu.sjtu.tooling.dto;

import cn.edu.sjtu.tooling.util.MathUtil;
import lombok.Builder;
import lombok.Data;

/** for mock */
@Data
@Builder
class MockData {
  private Double toolCoreVibration;
  private Double toolSpinWheelVibration;
  private Double toolSpinWheelRadius;
  private Double toolSpinWheelAngle;
  private Double toolSpinWheelDiameter;

  static MockData genRandomData() {
    return MockData.builder()
        .toolCoreVibration(MathUtil.range(0, 3))
        .toolSpinWheelVibration(MathUtil.range(0, 2))
        .toolSpinWheelRadius(MathUtil.range(450, 550))
        .toolSpinWheelAngle(MathUtil.range(116, 124))
        .toolSpinWheelDiameter(MathUtil.range(790, 820))
        .build();
  }
}
